	package charts.series.dots ;
	
	import charts.series.dots.PointDotBase;
	import flash.display.BlendMode;
	import flash.display.Sprite;
	import string.Utils;
	
	class PointDot extends PointDotBase {
		
		public function new ( index: Int, style:Properties ) {
			
			super( index, style );
			
			var color: Float = string.Utils.get_color( style.get('color') );
			
			this.graphics.lineStyle( 0, 0, 0 );
			this.graphics.beginFill( color, 1 );
			this.graphics.drawCircle( 0, 0, style.get('dot-size') );
			this.graphics.endFill();
			
			var s:Sprite = new Sprite();
			s.graphics.lineStyle( 0, 0, 0 );
			s.graphics.beginFill( 0, 1 );
			s.graphics.drawCircle( 0, 0, style.get('dot-size')+style.get('halo-size') );
			s.blendMode = BlendMode.ERASE;
			
			this.line_mask = s;
			
			this.attach_events();
		}
	}

